package com.atguigu.gulistudy.product.fallback;

import com.atguigu.common.exception.BizCodeEnume;
import com.atguigu.common.utils.R;
import com.atguigu.gulistudy.product.feign.SeckillFeignService;
import org.springframework.stereotype.Component;

/**
 * @author hnb
 * @version 1.0
 * @Description:
 * @date 2022/8/7 下午10:35
 */
@Component
public class SeckillFeignServiceFallBack implements SeckillFeignService {
    @Override
    public R getSkuSeckilInfo(Long skuId) {
        return R.error(BizCodeEnume.TO_MANY_REQUEST.getCode(), BizCodeEnume.TO_MANY_REQUEST.getMsg());
    }
}
